<script property>
    export let cond = false;
</script>

<div class:red={cond} class="bold">text</div>

<style>
    .bold {font-weight: bold;}
    .red {color: red;}
</style>
